package com.university.trade.service.impl;

import javax.annotation.Resource;

import com.university.trade.dao.ProductMapper;
import com.university.trade.entity.Product;
import com.university.trade.service.ProductService;

public class ProductServiceImpl implements ProductService {
	@Resource
	private ProductMapper productMapper;
	@Override
	public int deleteByPrimaryKey(String productId) {
		return this.productMapper.deleteByPrimaryKey(productId);
	}

	@Override
	public int insert(Product record) {
		return this.productMapper.insert(record);
	}

	@Override
	public int insertSelective(Product record) {
		return this.productMapper.insertSelective(record);
	}

	@Override
	public Product selectByPrimaryKey(String productId) {
		return this.productMapper.selectByPrimaryKey(productId);
	}

	@Override
	public int updateByPrimaryKeySelective(Product record) {
		return this.productMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Product record) {
		return this.productMapper.updateByPrimaryKey(record);
	}

}
